package com.service.scheduling.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.service.dao.mapper.MemberBorrowMapper;
import com.service.dao.model.MemberBorrow;
import com.service.scheduling.service.MemberBorrowService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class MemberBorrowServiceImpl extends ServiceImpl<MemberBorrowMapper, MemberBorrow>
        implements MemberBorrowService {

    @Autowired
    private MemberBorrowMapper memberBorrowMapper;

    /**
     * 获取所有未完成还款的借贷记录
     *
     * @return
     */
    @Override
    public List<MemberBorrow> listNotFinishBorrow() {
        return memberBorrowMapper.listNotFinishBorrow();
    }
}
